package com.kt.dion.golf.data.golfzone;

import java.util.ArrayList;

import com.kt.dion.golf.data.Data;
import com.kt.dion.golf.util.Log;

public class GolfZoneBookingListData extends Data
{
	private ArrayList arrOrder = new ArrayList();

	public void addOrder(Order date)
	{
		arrOrder.add(date);
	}

	public Order getOrder(int i)
	{
		return (Order) arrOrder.get(i);
	}

	public int getDataSize()
	{
		if (arrOrder.isEmpty())
			Log.outLine(" arrOrder is empty !!!!!!!!!!!!");
		return arrOrder.size();
	}

	public class Order
	{
		private String no;
		private String status;
		private String type;
		private String gcname;
		private String reqDate;
		private String roundDay;
		private String week;
		private String teeOffTime;
		private String courseName;
		private boolean isCancelable;

		public String getNo()
		{
			return no;
		}

		public void setNo(String no)
		{
			this.no = no;
		}

		public String getStatus()
		{
			return status;
		}

		public void setStatus(String status)
		{
			this.status = status;
		}

		public String getType()
		{
			return type;
		}

		public void setType(String type)
		{
			this.type = type;
		}

		public String getGcname()
		{
			return gcname;
		}

		public void setGcname(String gcname)
		{
			this.gcname = gcname;
		}

		public String getReqDate()
		{
			return reqDate;
		}

		public void setReqDate(String reqDate)
		{
			this.reqDate = reqDate;
		}

		public String getRoundDay()
		{
			return roundDay;
		}

		public void setRoundDay(String roundDay)
		{
			this.roundDay = roundDay;
		}

		public String getWeek()
		{
			return week;
		}

		public void setWeek(String week)
		{
			this.week = week;
		}

		public String getTeeOffTime()
		{
			return teeOffTime;
		}

		public void setTeeOffTime(String teeOffTime)
		{
			this.teeOffTime = teeOffTime;
		}

		public String getCourseName()
		{
			return courseName;
		}

		public void setCourseName(String courseName)
		{
			this.courseName = courseName;
		}

		public boolean isCancelable()
		{
			return isCancelable;
		}

		public void setCancelable(boolean isCancelable)
		{
			this.isCancelable = isCancelable;
		}
	}

	public String toString()
	{
		return null;
	}

	public void dispose(boolean isDisposeOfPage)
	{
		arrOrder.clear();
	}
}
